﻿<%@ Page Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="sell_17.aspx.cs" Inherits="map.member.order.sell_17" Title="卖家-需要评价" %>
<%@ Register assembly="RuleCode.Common" namespace="RuleCode.Controls" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <link href="../../outstyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .CommandButton
        {
            background:url(/img/back-button_61x23.gif) no-repeat;
            padding:4px 5px 4px 5px;
        }
    </style>
<script src="../../js/dropdowncontent.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server"> 
    <asp:Label ID="Label1" runat="server" Text="卖家-需要评价"></asp:Label>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
       Width="100%" DataKeyNames="RECID"
        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" ForeColor="Black" GridLines="Vertical">
        <RowStyle BackColor="#F7F7DE" />
        <Columns>
            <asp:TemplateField HeaderText="图片"><ItemTemplate><asp:Image ID="Image2" runat="server" ImageUrl='<%#Eval("taobaopic_path")%>' Width="60px"  Height="60px" /></ItemTemplate></asp:TemplateField>
            <asp:BoundField DataField="buyer_nick" HeaderText="买家" />
            <asp:BoundField DataField="taobaoname" HeaderText="商品名称" />
            <asp:BoundField DataField="taobaoprice" HeaderText="单价" />
            <asp:BoundField DataField="taobaonum" HeaderText="数量" />
            <asp:BoundField DataField="taobaocreated" HeaderText="创建时间" />
            <asp:BoundField DataField="taobaopayment" HeaderText="应付金额" />
            <asp:BoundField DataField="cbtrantype" HeaderText="物流方式" /> 
            <asp:TemplateField HeaderText ="交易结果">
                <ItemTemplate>
                    <%#(Eval("taobaostatus").ToString ()==TRADE_STATUS.Trade_Finished )?"交易成功":"交易失败" %>                       
                </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField  HeaderText="评价状态" >
                 <ItemTemplate>
                     <span style="color:blue"><%#GetRateStr(Eval("taobaoseller_rate").ToString (),Eval ("taobaobuyer_rate").ToString () )%></span>                      
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText ="操作">
                <ItemTemplate>
                    <a class ="CommandButton" href ='<%#("/member/order/TradeRates.aspx?type=seller&id="+Eval("RECID").ToString()) %>'>我要评价</a>                        
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>

<cc1:WebPager ID="WebPager1" runat="server" ControlToPaginate="GridView1"  OnPageIndexChanged ="WebPager1_PageIndexChanged"
    PageSize="20" />

</asp:Content>